home *** CD-ROM | disk | FTP | other *** search
- Documentation for ts/tb Dennis Boone (boone@convex.cl.msu.edu)
- =============================================================================
- The ts/tb package consists of several simple programs which allow you to
- create and search a keyword index of the user-visible titles in your
- Gopher server.
-
- The programs are:
- -----------------
- tb Creates the index file
- ts Executes a search using either tsc or tsp
- tsc The C version of the search engine
- tsp The Perl version of the search engine (descendant of
- the old ts
-
- The data file created by .tb is called .ts/.tsdata
-
- The package depends on Perl and gopherls. Gopherls is a feature of the
- Gopher server which is not available in earlier versions. Perl is a
- feature of Larry Wall's nightmares.
-
- -----------------------------------------------------------------------------
- History of Revisions:
- -----------------------------------------------------------------------------
- Version Changes
- ------- -------------------------------------
- 1.0 Initial release
- 1.1 ts (original Perl version) rewritten to only search
- the user-visible name field. Since this rewrite
- caused a performance problem, the tsc module was written.
- 1.2 Bugfix to a problem which prevented ts/tb from working in
- a subdirectory.
- -----------------------------------------------------------------------------
- Installation Instructions for ts/tb:
- -----------------------------------------------------------------------------
- Unpack this stuff into a working directory. (You already did that, yes?)
-
- Decide which version of the search engine you will use. Some crude measures
- of performance:
-
- program words seconds
- ------- ----- -------
- old ts 1 2
- old ts 3 6
- tsp 1 10
- tsp 3 12
- tsc 1 .7
- tsc 3 1.7
-
- All numbers generated on my RS/6000-520 using the timex command.
- The data file used for these timings contained ~5600 lines, and
- ~427000 bytes.
-
- If you're going to use the tsc module, build it.
-
- If you're going to use tsp, edit ts and change the second line to say
- tsp instead of tsc.
-
- Look at tb, in the comments near the top, to learn all about the possible
- problems you could have with gopherls. Take care of those issues now.
-
- Set up the directory structure. Here we'll assume that your Gopher lives
- in a directory called /home/gopherdata. Make the appropriate substitutions
- if that is not true, or if you want to index a subtree instead of the
- whole thing.
-
- /home/gopherdata/
- ts The interface script
- .ts/ The invisible hidey hole for .tsdata
- tsc Only one of these two is needed, but
- tsp both won't hurt anything...
- tb The index builder
-
- Build the first index by hand:
-
- cd /home/gopherdata; /home/gopherdata/.ts/tb
-
- Make a crontab entry to run tb periodically. In this example, it runs
- every night at 2 am.
-
- 0 2 * * * cd /home/gopherdata; /home/gopherdata/.ts/tb
-
- Make /home/gopherdata/.cap/ts (a side file):
-
- Type=7
- Name=Search Gopher Tree
-
- Make sure that all of the scripts and programs have their execute bit set.
- Gopher won't run them if they don't.
-
- Test it.
-
- -----------------------------------------------------------------------------
-
- If you want to index your whole tree, but want the index to hide in a
- subdirectory, use the following commands:
-
- cd /home/gopherdata/index; .ts/tb /home/gopherdata
-
- -----------------------------------------------------------------------------
-